package _99练习;

public class Card {
	// 属性 : 卡号 姓名 密码 余额
	// 方法: 存钱 取钱
	long cardNum;
	String name;
	int password;
	double money;

	public void saveMoney(double change) {
		money = money + change;
		System.out.println("您存了:" + change + "\n余额:" + money);
	}

	public void getOutMoney(double change) {
		money = money - change;
		System.out.println("您取走:" + change + "\n余额:" + money);
	}
}
